//
//  HomeViewController.m
//  GYMWinners
//
//  Created by Logic Solutions on 4/1/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "HomeViewController.h"
#import "RegisterUserInfoViewController.h"
#import "LoginViewController.h"
#import "ChangeServerViewController.h"


//#import "ASIHTTPRequest.h"
//#import "ASIFormDataRequest.h"
//#import "SBJSON.h"
//#import "MBProgressHUD.h"


@implementation HomeViewController

-(IBAction) performRegister{
    
    RegisterUserInfoViewController* registerUser= [[RegisterUserInfoViewController alloc] init];
    
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.8];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO];
    
    [self.navigationController pushViewController:registerUser animated:YES];
    
    [UIView commitAnimations];
}

 
-(IBAction) performLogin{
    
    NSLog(@"=>performLogin");
    LoginViewController* login=[[LoginViewController alloc] init];
    [self.navigationController pushViewController:login animated:YES];
    
}

-(IBAction) performConfig{
    
    ChangeServerViewController* summaryViewController=[[ChangeServerViewController alloc] init];
    [self.navigationController pushViewController:summaryViewController animated:YES];
    
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
